﻿using System;

namespace diantou.web.ajax
{
    /// <summary>
    /// 比赛操作
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class contest : userHandle<contest>
    {
        /// <summary>
        /// 注册比赛
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Register(diantou.dataAccess.contestUser value, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            value.UserId = currentUser.Id;
            diantou.dataAccess.tcpCall.contestUser.register(value, onReturn);
        }
    }
}
